package com.zhike.common.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
public class PostCommentVo {
    private Integer id;

    private String userId;

    private String nickName;

    private Integer parentId;

    private String userAvatarFileName;

    private String targetReplyNickname;

    private String targetReplyAvatar;

    private String targetReplyUid;

    private String content;

    private String images;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private Integer hasMoreReplies;

    private int likes;

    private int isLike;

    private List<PostCommentVo> replies;

}
